package com.tj.tj_java.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class QQEmailValidatorUtils {
    //qq邮箱验证
    public static boolean isValidQQEmail(String email) {
        //System.out.println("验证邮箱是否正确:"+email);
        // QQ邮箱的正则表达式，假设QQ号码是5到11位数字
        String regex = "^[1-9]\\d{4,10}@qq\\.com$";
        Pattern pattern = Pattern.compile(regex);
        Matcher matcher = pattern.matcher(email);
        return matcher.matches();
    }

}
